<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>使用 Element UI</title>
<!-- 先引入 Vue -->
<script src="https://unpkg.com/vue/dist/vue.js"></script>
<!-- 引入样式 -->
<link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">
<!-- 引入组件库 -->
<script src="https://unpkg.com/element-ui/lib/index.js"></script>
</head>
<body>
<div id="app">
    <el-button @click="visible = true">单击显示内容</el-button>
    <el-dialog :visible.sync="visible" title="Hello Element UI">
      <p>欢迎使用Element UI</p>
    </el-dialog>
</div>
<script>
var vm=new Vue({
      el: '#app',
      data: function() {
        return { visible: false }
      }
    })
</script>
</body>
</html>